package com.zy.cat.entity.wy;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.RequiredArgsConstructor;

@lombok.Data
@RequiredArgsConstructor
@ApiModel("高佣转链返回实体类")
public class TKConvertResp {
	
	@ApiModelProperty(value="错误码(0.正常，其他错误)",example="1000")
	private int error;
	
	@ApiModelProperty(value="错误信息",example="pid不匹配")
	private String msg;
	
	@ApiModelProperty(value="表示是否有优惠券：1-该产品有优惠券，2-表示该产品无优惠券",example="1")
    private int result;
	
	@ApiModelProperty(value="优惠券详细信息",example="1")
    private Data data;

	public TKConvertResp(int error, String msg) {
		super();
		this.error = error;
		this.msg = msg;
	}
	
	@lombok.Data
	@RequiredArgsConstructor
	@ApiModel("高佣转链详情")
	public static class Data {
		@ApiModelProperty(value="类目ID",example="")
		private String category_id;
		@ApiModelProperty(value="优惠券领券链接",example="https://uland")
	    private String coupon_click_url;
		@ApiModelProperty(value="优惠券结束时间",example="2019-06-23")
	    private String coupon_end_time;
		@ApiModelProperty(value="优惠券信息接",example="满79元减15元")
	    private String coupon_info;
		@ApiModelProperty(value="优惠券剩余数量",example="1500")
	    private String coupon_remain_count;
		@ApiModelProperty(value="优惠券开始时间",example="2019-06-13")
	    private String coupon_start_time;
		@ApiModelProperty(value="优惠券总数量",example="3500")
	    private String coupon_total_count;
		@ApiModelProperty(value="优惠券类型",example="")
	    private String coupon_type;
		@ApiModelProperty(value="商品ID",example="13541094929")
	    private String num_iid;
		@ApiModelProperty(value="商品详情页",example="https://s.click.")
	    private String sclick_url;
		@ApiModelProperty(value="商品淘口令",example="￥LiDqY4Oshhz￥")
	    private String tbk_pwd;
		@ApiModelProperty(value="商品短链接",example="http://t.cn/AiNva2mN")
	    private String coupon_short_url;
		
		@ApiModelProperty(value="商品短链接",example="http://t.cn/AiNva2mN")
	    private String commission_rate;
		
		@ApiModelProperty(value="产品折后价",example="")
	    private String zk_final_price;
		
		@ApiModelProperty(value="最近30天销量",example="630")
	    private String volume;
		
		@ApiModelProperty(value="1、表示天猫，0、表示淘宝",example="1")
	    private String user_type;
		
		@ApiModelProperty(value="产品标题",example="")
	    private String title;
		
		@ApiModelProperty(value="卖家id",example="")
	    private String seller_id;
		
		@ApiModelProperty(value="原价",example="")
	    private String reserve_price;
		
		@ApiModelProperty(value="商品主图",example="")
	    private String pict_url;
		
		@ApiModelProperty(value="店铺名",example="")
	    private String nick;
		
	    @ApiModelProperty(value="表示产品链接地址（天猫国际有的也是taobao.com链接，要结合user_type分析）",example="")
	    private String item_url;
	    
	    @ApiModelProperty(value="分类名",example="")
	    private String cat_name;
	    
	    @ApiModelProperty(value="分类子叶",example="")
	    private String cat_leaf_name;
	}
}
